<?php

include("config.php");
include("function.php");

initializeSession();

if (!isset($_GET["action"]) || strcmp($_GET["action"], "view")==0) {
	include("view.php");
} else if (isset($_GET["action"]) && strcmp($_GET["action"], "edit")==0) {
	include("edit.php");
} else if (isset($_GET["action"]) && strcmp($_GET["action"], "search")==0) {
	include("search.php");
} else if (isset($_GET["action"]) && strcmp($_GET["action"], "backup")==0) {
	include("backup.php");
} else if (isset($_GET["action"]) && strcmp($_GET["action"], "login")==0) {
	include("login.php");
} else if (isset($_GET["action"]) && strcmp($_GET["action"], "logout")==0) {
	include("logout.php");
} else {
	pwet();
}

?>